const path = require('node:path')

module.exports = (codeConfig, utils) => {
  const code = `
    export * from './use-handler'
    export * from './use-search'
    export * from './use-table'
    export * from './use-store'
  `
  utils.writeFile(path.join(codeConfig.modulePath, 'hooks', 'index.ts'), code)
}
